import request from '/@/utils/request';
// 产业分类列表
export function industryList(query?: Object) {
	return request({
		url: '/talent/industry/list',
		method: 'get',
		params: query,
	});
}
// 分页查询创新人才
export function getInfoPage(query?: Object) {
	return request({
		url: '/talent/info/page',
		method: 'get',
		params: query,
	});
}
// 分页查询创新人才
export function getInfoTalentId(talentId: string) {
	return request({
		url: `/talent/info/get/${talentId}`,
		method: 'get',
	});
}
// 创新活力
export function getSummaryVitality(val: any) {
	return request({
		url: `/talent/summary/vitality/${val}`,
		method: 'get',
	});
}
// 综合评价指标
export function getTalentEvaluateIndicator(query: any) {
	return request({
		url: `/talent/summary/evaluate`,
		method: 'get',
		params: query,
	});
}


/** 
 * 创新清单
 */
export function getTalentInnovatePage(query:any) {
	return request({
		url: `/talent/summary/page`,
		method: 'get',
		params: query,
	});
}

/** 
 * 人才分布
 * @returns
 */
export function getTalentDistribution() {
	return request.get(`/talent/summary/distribution`);
}

/** 
 * 技术活动周期
 * @returns
 */
export function getTalentCycle(query:any) {
	return request({
		url: `/talent/summary/cycle`,
		method: 'get',
		params: query,
	});
}

/** 
 * 创新能力(圆形图)
PIE_PATENT_TYPE( type: "pie",value: "1"name:"专利类型")
PIE_PATENT_CITATION( type: "pie",value: "2"name:"被引证次情况")
PIE_PATENT_LPRS( type: "pie", value: "了",name:"专利杈利状态")
PIE_PATENT_KEEP_LIMIT( type: "pie",value: "4”,name:"专利平均维持年限")
PIE_PATENT_INDUSTRY_BRANCH( type: "pie",value: "5",name:"专业分支")
PIE_PATENT_TECHNOLOGY_AREA( type: "pie",value:"ó".name:"专业技术领域");
 * @returns
 */
export function getTalentCapacity(query: any) {
	return request({
		url: `/talent/summary/capacity`,
		method: 'get',
		params: query,
	});
}
/** 
 * 产业分类列表汇总查询
 * @returns
 */
export function queryTalentIndustryList(query) {
	return request({
		url: `/talent/industry/query`,
		method: 'get',
		params: query,
	});
}

/** 
 * 人才分布
 * @returns
 */
export function querySummaryDistribution(query) {
	return request({
		url: `/talent/summary/distribution`,
		method: 'get',
		params: query,
	});
}

/** 
 * 人才创新质量
 * @returns
 */
export function getTalentInnovateQuality(query) {
	return request({
		url: `/talent/summary/quality`,
		method: 'get',
		params: query,
	});
}

/** 
 * 人才创新质量
 * @returns
 */
export function userCollectPage(query) {
	return request({
		url: `/talent/info/user/collect`,
		method: 'get',
		params: query,
	});
}

// 用户收藏专利
export const patentCollect = (obj: Object) => {
	return request({
		url: '/talent/info/collect',
		method: 'post',
		data: obj,
	});
};

// 人才取消收藏
export const unCollect = (obj: Object) => {
	return request({
		url: '/talent/info/uncollect',
		method: 'post',
		data: obj,
		headers: {
			'Content-Type': 'application/x-www-form-urlencoded',
		}
	});
};

/** 
 * 专利引证排名以及专利引证次数列表
 * @returns
 */
export function getPatentCitation(query:any) {
	return request({
		url: '/talent/summary/citation',
		method: 'get',
		params: query,
	});
}

/** 
 * 专利引证排名表
 * @returns
 */
export function getPatentCitationPage(query:any) {
	return request({
		url: '/talent/summary/citation/page',
		method: 'get',
		params: query,
	});
}

/** 
 * 创新活力-评价周期排名列表
 * @returns
 */
export function getTalentCycleList(query:any) {
	return request({
		url: '/talent/summary/cycle/list',
		method: 'get',
		params: query,
	});
}

/** 
* 合作研发
* @returns
*/
export function getTalentCooperatedDevlop(query:any) {
	return request({
		url: '/talent/summary/cooperated',
		method: 'get',
		params: query,
	});
}
/** 
 * 所属机构列表查询
 * @returns
 */
export function getPatentAgencyList(query:any) {
	return request({
		url: '/talent/patent/agency',
		method: 'get',
		params: query,
	});
}

/** 
 * 专利类型汇总
 * @returns
 */
export function getPatentPatType(query:any) {
	return request({
		url: '/talent/summary/patType',
		method: 'get',
		params: query,
	});
}

/** 
 * 专利权利状态汇总
 * @returns
 */
export function getPatentLprs(query:any) {
	return request({
		url: '/talent/summary/lprs',
		method: 'get',
		params: query,
	});
}

/** 
 * 专利价值度-创新转化力
 * @returns
 */
export function getValueConversion(query:any) {
	return request({
		url: '/talent/summary/conversion',
		method: 'get',
		params: query,
	});
}

/** 
 * 分页查询产业分支领域排名
 */
export function getIndustryRankListPage(query:any) {
	return request({
		url: '/talent/summary/rank',
		method: 'get',
		params: query,
	});
}

/** 
 * 导出创新人才限制验证
 */
export function exportValid(query:any) {
	return request({
		url: '/talent/info/export/valid',
		method: 'get',
		params: query,
	});
}

/** 
 * 国别选项列表
 * @returns
 */
export function getTalentCountry() {
	return request.get(`/talent/talentArea/country`);
}

/** 
 * 产业分支列表查询
 */
export function getPatentIndustryList(query:any) {
	return request({
		url: '/talent/patent/industry',
		method: 'get',
		params: query,
	});
}

/** 
 * 产业分支列表查询
 */
export function getPatentIpcList(query:any) {
	return request({
		url: '/talent/patent/ipc',
		method: 'get',
		params: query,
	});
}

/** 
 * 分页查询专利技术领域排名
 */
export function getIpcRankListPage(query:any) {
	return request({
		url: '/talent/summary/ipc/page',
		method: 'get',
		params: query,
	});
  }

/** 
 * 分页查询专利技术领域排名
 */
export function summaryDownload(query:any) {
	return request({
		url: '/talent/summary/download',
		method: 'get',
		params: query,
	});
  }